package com.ljkj.blockpay.ui.adapter;

import android.view.View;
import android.widget.ImageView;

import androidx.annotation.NonNull;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.kongzue.baseokhttp.util.JsonMap;
import com.ljkj.blockpay.R;

/**
 * Created by yp on 2022/3/24
 */
public class AddressAdapter extends BaseQuickAdapter<JsonMap, BaseViewHolder> {
    public AddressAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, JsonMap jsonMap) {
        ImageView currencyIcon = helper.findView(R.id.iv_currencyicon);
        Glide.with(getContext()).load(jsonMap.getString("currencyImg")).into(currencyIcon);
        helper.setText(R.id.tv_currency,jsonMap.getString("currencyName")+"地址");
        helper.setText(R.id.tv_account,jsonMap.getString("content"));
        helper.setText(R.id.tv_net,jsonMap.getString("networkType"));
        helper.setText(R.id.tv_detailaddress,jsonMap.getString("address"));

    }
}
